package com.example.qrcode.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.qrcode.entity.GraphicsLibrary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface GraphicsLibraryMapper extends BaseMapper<GraphicsLibrary> {

    @Select("SELECT svg FROM t_graphics_library WHERE id = #{id}")
    String getSvgById(@Param("id") Long id);
    
    @Select("SELECT svg FROM t_graphics_library WHERE graphic_name = #{graphicName}")
    String getSvgByGraphicName(@Param("graphicName") String graphicName);
}
